home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 44
/
Amiga Format CD44 (1999-08-26)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-10].iso
/
-in_the_mag-
/
basics
/
amos
/
moreuselssprgs.lha
/
Tan.AMOS
/
Tan.amosSourceCode
Wrap
AMOS Source Code
|
1997-04-18
|
407b
|
24 lines
Screen Open 0,320,200,2,0
Curs Off : Flash Off : Paper 0 : Pen 1
Degree
Do
MX=X Screen(X Mouse)
MY=Y Screen(Y Mouse)
Wait Vbl
Cls
DX=(160-MX)
DY=(100-MY)
If DX<>0
W=Atan(((DY*256)/DX)/256.0)
Else
If DY<0
W=90
Else
W=270
End If
End If
If DX>0 Then Add W,180
W=(W+360) mod 360
Draw 160,100 To 160+Cos(W)*16,100+Sin(W)*16
Locate 0,20 : Print W
Loop